package org.dynamic.code.layer.n00machine;

/**
 * @author alban
 */
public enum NormalizedSize {

    /**
     * 8 bits
     */
    BYTE(1),
    /**
     * 16 bits
     */
    WORD(2),
    /**
     * 32 bits
     */
    DOUBLE_WORD(4),
    /**
     * 64 bits
     */
    QUAD_WORD(8),
    /**
     * 128 bits
     */
    DOUBLE_QUAD_WORD(16),
    /**
     * 256 bits
     */
    QUAD_QUAD_WORD(32);
    // --
    private static final int BYTE_SIZE = 8;
    private final int byteSize;
    private final int bitSize;

    private NormalizedSize(int byteSize) {
        this.byteSize = byteSize;
        this.bitSize = byteSize * BYTE_SIZE;
    }

    public int getByteSize() {
        return byteSize;
    }

    public int getBitSize() {
        return bitSize;
    }
}
